package com.itheima.stock.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "id-worker.config")
public class IdWorkProperties {
    private long datacenterId;
    private long machineId;
}
